package com.weixue.service;

import com.weixue.controller.vo.NongFuMallUserVO;
import com.weixue.entity.MallUser;
import com.weixue.utils.PageQueryUtil;
import com.weixue.utils.PageResult;

import javax.servlet.http.HttpSession;

/**
 * Day34
 *      用户登录和注册业务层
 */
public interface NongFuMallUserService {

    /**
     * 1.用户注册
     */
    String register(String loginName, String password);

    /**
     * 2.登录
     */
    String login(String loginName, String passwordMD5, HttpSession httpSession);

    /**
     * 后台分页
     */
    PageResult getNongFuMallUsersPage(PageQueryUtil pageUtil);

    /**
     * 用户信息修改并返回最新的用户信息
     */
    NongFuMallUserVO updateUserInfo(MallUser mallUser, HttpSession httpSession);

    /**
     * 用户禁用与解除禁用(0-未锁定 1-已锁定)
     */
    Boolean lockUsers(Integer[] ids, int lockStatus);
}
